package com.simdo.g768.Bean;

import java.util.ArrayList;

public class CellCfgBean {
    public CellCfgBean(int cellId) {
        this.cellId = cellId;
        this.list = new ArrayList<>();
    }

    public int getCellId() {
        return cellId;
    }

    public int addData(ArfcnPciBean bean){
        if (list.size() == 3) return 1;
        for (ArfcnPciBean item : list) {
            if (item.getArfcn() == bean.getArfcn()) return 2;
        }
        list.add(bean);
        return 0;
    }

    public ArrayList<ArfcnPciBean> getList() {
        return list;
    }

    public void setList(ArrayList<ArfcnPciBean> list) {
        this.list = list;
    }

    int cellId;
    ArrayList<ArfcnPciBean> list;
}
